package com.wk.springbootlearn.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wk.springbootlearn.pojo.form.UpdateUserForm;
import com.wk.springbootlearn.pojo.form.UserForm;
import com.wk.springbootlearn.pojo.form.GetUsersForm;
import com.wk.springbootlearn.pojo.entity.User;
import com.wk.springbootlearn.pojo.form.LoginRequest;
import com.wk.springbootlearn.pojo.model.LoginResponse;


public interface UserService {
    IPage<User> findAll(GetUsersForm getUsersForm);

    LoginResponse login(LoginRequest loginRequest) throws Exception;

    void createUser(UserForm user, Long userId);

    void updateUser(Long id, UpdateUserForm userForm, Long aLong);

    void updatePwd(Long id, String pwd, Long userId);

    void deleteUser(Long id);
}
